package com.tidemark;

/**
 * linked list structure, one proposal can have only one direct comment
 * but comment can have comment of comment
 * thus, multiple parties can comment on one proposal
 *  
 * e.g.
 * initial proposal = v1.0
 * proposal.comment = v2.0
 * proposal.comment.comment = v3.0
 */
public class Proposal {
	
	/**
	 * once a proposal is created, the owner/data are fixed
	 * when the proposal is commented, this.owner/data don't change,
	 * instead, this.comment.owner/data changes 
	 */
	private Reader owner; 
	private StockDataModel data;
	
	
	private Proposal comment;
	
	
	public Reader getOwner() {
		return owner;
	}

	public StockDataModel getData() {
		return data;
	}

	public Proposal getComment() {
		return comment;
	}

	public void setComment(Proposal comment) {
		this.comment = comment;
	}

	public Proposal(Reader owner, StockDataModel data, Proposal comment){
		this.owner = owner;
		this.data = data;
		this.comment = comment;
	}

}
